
function createConditionReadLine() {
    return {
        line: {
            stroke: '#000',
            targetMarker: {
                tagName: 'image',
                'xlink:href': 'https://image-1258128239.cos.ap-nanjing.myqcloud.com/arrow.png',
                width: 14,
                height: 14,
                y: -7
            },
        }
    }
}

function createWriteLine() {
    return {
        line: {
            stroke: '#000',
            sourceMarker: {
                name: 'path',
                offsetX: -5,
                d: 'M 0 0 L 10 5 L 0 10　L 0 0 Z'
            },
            targetMarker: null
        }
    }
}

function createReferenceReadLine() {
    return {
        line: {
            stroke: '#000',
            targetMarker: {
                name: 'path',
                offsetX: -5,
                d: 'M 0 0 L 10 5 L 10 -5　L 0 0 Z'
            },
            sourceMarker: null
        }
    }
}
module.exports = {createConditionReadLine, createWriteLine, createReferenceReadLine}
